﻿using System.Configuration;
using System.Data;
using System.Windows;
using System.Diagnostics;

namespace FileManager
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : System.Windows.Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            // 加载配置到单例容器
            Config.Load("config.yaml");

            // 创建主窗口时可访问配置
            var mainWindow = new MainWindow();
            System.Windows.Application.Current.MainWindow = mainWindow; // 设置为主窗口
            mainWindow.Show();
        }

    }

}
